package com.module.my.adapter

import android.view.ViewGroup
import com.module.base.base.adapter.BaseMultiAdapter
import com.module.base.base.adapter.BaseViewHolder
import com.module.base.base.adapter.EmptyHolder
import com.module.my.adapter.holder.vip.VipContentHolder
import com.module.my.adapter.holder.vip.VipTitleHolder

class VipAdapter : BaseMultiAdapter() {
    override fun onCreateMultiViewHolder(parent: ViewGroup, viewType: Int): BaseViewHolder<*,*> {
        when (viewType) {
            type_content -> return VipContentHolder(parent)
            type_title -> return VipTitleHolder(parent)
        }
        return EmptyHolder(parent)
    }

    companion object {
        const val type_title = 1
        const val type_content = 2
    }
}